import { http } from "@/utils/http";

// 1、查询特气耗量明细
export const getDetailListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/queryConsumptionDetail", {
    data
  });
};

// 2、特气耗量明细编辑spec
export const editDetailListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/updateSpc", {
    data
  });
};

// 3、oos回填原因
export const setOOSReasonAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/submitReason", {
    data
  });
};

// 4、自动抄表修正查询
export const getMeterReadingListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/queryReadValueList", {
    data
  });
};

// 5、更新抄表值
export const editMeterReadingListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/updateStatValue", {
    data
  });
};

// 6、换瓶记录修正查询
export const getDecantListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/queryConsumptionStatQuantity", {
    data
  });
};

// 7、更新换瓶次数
export const editDecantListAPI = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/updateConsumptionStatQuantity", {
    data
  });
};

// 8、特气耗量分析查询
export const specialGasAnalysis = data => {
  return http.request("post", "/operation/api/v1/gas/specialtyGas/queryConsumptionAnalysis", {
    data
  });
};
